package com.test.demo.provider.service.impl;


import com.test.demo.provider.service.DemoService;
import org.apache.dubbo.config.annotation.Service;
import org.springframework.beans.factory.annotation.Value;

import java.util.concurrent.CompletableFuture;
//异步调用
//@Service(version = "async",async = true)
public class AsyncDemoServiceImpl implements DemoService {

    @Value("${server.port}")
    private Integer port;
    @Override
    public String sayHello(String msg) {
        System.out.println("Hello "+msg+port);
        return "Hello "+msg+port;
    }

}
